<div class="menu">
	<div align="right" style="font-weight:bold; font-size:12px; padding-bottom:8px; color:#10498A;">
		<?php echo $this->Access->getMyRole($this->Access->getMy('group_id')).": ".$this->Access->getMy('nombre_completo');?>
	</div>
	<div class="desplegable">
		<?php  $this->Form->new_menu($this->Access->getMy('id'),$this->Access->getMy('group_id'));?>
	</div>
</div>
<div class="kits form">
<?php echo $this->Form->create('Kit');?>
	<fieldset>
 		<legend><?php __('Editando Kits '); ?></legend>
 		<h4><?php __('Usuario: '.$users['User']['nombre_completo']); ?></h4>
 		<table cellpadding="0" cellspacing="0">
	 		<tr>			
				<th class="actions"><?php __('Estudiante'); ?></th>			
				<th class="actions"><?php __('Cuadernos');?></th>
				<th class="actions"><?php __('Lapiz');?></th>
				<th class="actions"><?php __('Borrador');?></th>
				<th class="actions"><?php __('Tajalapiz');?></th>
				<th class="actions"><?php __('Morral');?></th>
				<th class="actions"><?php __('Esfero');?></th>
				<th class="actions"><?php __('Otros');?></th>
			</tr>
			<tr>
			<?php		
					foreach($estudiantes as $estudiante){						
						$kits = array();
						$estudiante_id = $estudiante['Estudiante']['id'];						
						$kits = $this->Kit->kit_estudiante($estudiante_id);
												
			?>				
				<td><?php echo $this->Form->label($estudiante['Estudiante']['nombre_completo']);?></td>
					<?php echo $this->Form->input(null, array('type'=>'hidden', 'name'=>'data[Estudiantes]['.$estudiante['Estudiante']['id'].']',
															  'id'=>'data[Estudiantes]['.$estudiante['Estudiante']['id'].']',
															  'value'=>$estudiante['Estudiante']['id']));?>
					<?php echo $this->Form->input(null, array('type'=>'hidden', 'name'=>'data[Kits]['.$estudiante['Estudiante']['id'].']',
															  'id'=>'data[Kits]['.$estudiante['Estudiante']['id'].']',
															  'value'=>$kits['Kit']['id']));?>
				<td><?php echo $this->Form->input(null, array('label'=>'', 'id'=>'data[Cuaderno]['.$estudiante['Estudiante']['id'].']', 
															  'name'=>'data[Cuaderno]['.$estudiante['Estudiante']['id'].']',
															  'class' => 'text_asistencia', 'type'=>'text', 'value'=>$kits['Kit']['cuaderno']))?></td>
				<td><?php echo $this->Form->input(null, array('label'=>'', 'id'=>'data[Lapiz]['.$estudiante['Estudiante']['id'].']', 
															  'name'=>'data[Lapiz]['.$estudiante['Estudiante']['id'].']',
															  'class' => 'text_asistencia', 'type'=>'text', 'value'=>$kits['Kit']['lapiz']))?></td>
				<td><?php echo $this->Form->input(null, array('label'=>'', 'id'=>'data[Borrador]['.$estudiante['Estudiante']['id'].']', 
															  'name'=>'data[Borrador]['.$estudiante['Estudiante']['id'].']',
															  'class' => 'text_asistencia', 'type'=>'text', 'value'=>$kits['Kit']['borrador']))?></td>
				<td><?php echo $this->Form->input(null, array('label'=>'', 'id'=>'data[Tajalapiz]['.$estudiante['Estudiante']['id'].']', 
															  'name'=>'data[Tajalapiz]['.$estudiante['Estudiante']['id'].']',
															  'class' => 'text_asistencia', 'type'=>'text', 'value'=>$kits['Kit']['tajalapiz']))?></td>
				<td><?php echo $this->Form->input(null, array('label'=>'', 'id'=>'data[Morral]['.$estudiante['Estudiante']['id'].']', 
															  'name'=>'data[Morral]['.$estudiante['Estudiante']['id'].']',
															  'class' => 'text_asistencia', 'type'=>'text', 'value'=>$kits['Kit']['morral']))?></td>	
				<td><?php echo $this->Form->input(null, array('label'=>'', 'id'=>'data[Esfero]['.$estudiante['Estudiante']['id'].']', 
															  'name'=>'data[Esfero]['.$estudiante['Estudiante']['id'].']',
															  'class' => 'text_asistencia', 'type'=>'text', 'value'=>$kits['Kit']['esfero']))?></td>
				<td><?php echo $this->Form->input(null, array('label'=>'', 'id'=>'data[Otro]['.$estudiante['Estudiante']['id'].']', 
															  'name'=>'data[Otro]['.$estudiante['Estudiante']['id'].']',
															  'class' => 'text_kit', 'type'=>'text', 'value'=>$kits['Kit']['otro']))?></td>

			</tr>
			<?php 
					}
								
			?>
		</table>
	<?php echo $this->Form->input('user_id', array('type'=>'hidden', 'value'=>$users['User']['id']));?>
	<?php echo $this->Form->input('circulos_aprendizaje_id', array('type'=>'hidden', 'value'=>$circulo));?>
	</fieldset>
<?php echo $this->Form->end(__('Guardar', true));?>
</div>